package za.co.dylanjaneke.airdownloader.model
{
	import za.co.dylanjaneke.airdownloader.controller.data.ConnectionManager;

	/**
	 * Author: Dylan Janeke
	 */
	[Bindable]
	[Name("screenNavigatorPM")]
	public class ScreenNavigatorPM
	{
		[Inject]
		public var repository:ConnectionManager;
		
		public static function getInstance(): ScreenNavigatorPM
		{
			return ContextUtil.getObject("screenNavigatorPM") as ScreenNavigatorPM;
		}
		
		public var openView:String= HOME;
				
		public function switchView(viewName:String): void
		{
			this.openView= viewName;
		}
		
		public static const HOME:String = "home";
		public static const SETTINGS:String = "settings";
		public static const DOWNLOAD_QUEUE:String = "downloadQueue";
	}
}